package com.seawave.sdkclientjdk8.service.impl;

import com.seawave.sdkclientjdk8.service.AbstractService;
import com.seawave.sdkcore.vo.base.BaseRequest;
import com.seawave.sdkcore.vo.base.BaseResponse;
import com.seawave.sdkcore.vo.iot.IotRequest;
import com.seawave.sdkcore.vo.iot.managedown.ManageDownRequest;
import com.seawave.sdkcore.vo.iot.managedown.ManageDownResponse;

/**
 * @ClassName ManageDownService
 * @Description: 物联卡管理停复机
 * @Author: Jing GuangYong
 * @Date: 2020/2/6 20:02
 * @Version: 1.0
 */
public class ManageDownService extends AbstractService<ManageDownRequest, ManageDownResponse> {

    /**
    * @Description: 获取接口
    * @Author: Jing GuangYong
    * @Date: 2020/2/6 20:03
    * @Param
    * @return
    */
    @Override
    protected String getInterfaceUrl(BaseRequest request) {
        return request.getRealmName()+"/manageDown";
    }

    /**
    * @Description: 请求接口
    * @Author: Jing GuangYong
    * @Date: 2020/2/6 20:03
    * @Param
    * @return
    */
    @Override
    public BaseResponse call(BaseRequest request) throws Exception {
        //数据加密
        IotRequest iotRequest=super.encryptMsg(request);
        //请求接口
        return super.call(iotRequest,request);
    }
}
